package com.example.a321.rxnetdemo;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by zhangdongyang on 2016/9/5.
 * Email:dongyangzhang@foxmail.com
 */
public interface DemoApi {
    @Headers("User-Agent: Retrofit-Sample-App")
    @GET("constellation/getAll")
    Observable<DayEntity> getDemoResponse(@Query("key") String key, @Query("consName") String consName, @Query("type") String type);

    //https://test.api.liuyang.com/tools/crac/policy_templates
    @POST("tools/crac/policy_templates")
    Observable<BaseEntity> postData(@Body PostEntity entity);


}
